package com.xiaoyang.controller;

import com.xiaoyang.domain.Hero;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther XiaoYang
 * @DATE 2023/5/8-20:35
 */
@RestController
public class ConfigMulController {

    @Autowired
    private Hero hero;

    @GetMapping("/getInfo")
    public String getInfo(){
        return hero.toString();
    }

}
